//
//  HMUser.m
//  OC新浪微博
//
//  Created by wyman on 16/4/16.
//  Copyright © 2016年 wyman. All rights reserved.
//

#import "HMUser.h"
@interface HMUser()



@end

@implementation HMUser

-(void)setVerified_type:(int)verified_type
{
    _verified_type = verified_type;
    
    switch (verified_type) {
        case 0:
            self.verifiedImage = [UIImage imageNamed:@"avatar_vip"];
            break;
        case 2:
        case 3:
        case 5:
            self.verifiedImage = [UIImage imageNamed:@"avatar_enterprise_vip"];
            break;
            case 220:
            self.verifiedImage = [UIImage imageNamed:@"avatar_grassroot"];

            
        default:
            self.verifiedImage = nil;

            break;
    }

}

-(void)setMbrank:(int)mbrank
{
    _mbrank = mbrank;
    
    if (mbrank >0 && mbrank<=6) {
        self.mbrankImage = [UIImage imageNamed:[NSString stringWithFormat:@"common_icon_membership_level%zd",mbrank]];
    }else
    {
        self.mbrankImage = nil;
    }


}
-(instancetype)initWithDict:(NSDictionary *)dict{
    if (self = [super init]){
    
        [self setValuesForKeysWithDictionary:dict];
    }
    return self;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{

}


@end
